Ext.define('appfe.stockor.statist.buyinpointgrowinglog.BuyinPointGrowingLog', {
	extend: 'Ext.grid.Panel',
	xtype: 'statist-buyinpointgrowinglog',	
	requires: ['appfe.stockor.statist.buyinpointgrowinglog.BuyinPointGrowingLogController',
		'appfe.stockor.statist.buyinpointgrowinglog.BuyinPointGrowingLogModel'],
	controller: 'stockor.statist.buyinpointgrowinglog.BuyinPointGrowingLog',
	viewModel: 'stockor.statist.buyinpointgrowinglog.BuyinPointGrowingLog',
	viewConfig: {
		trackOver: true, // 鼠标滑过当前行时, 反显
		stripeRows: true, // 行颜色白灰条纹间隔显示
		enableTextSelection: true, // 允许选择文本
		emptyText: '点击查询按钮',
		deferEmptyText: false,
		listeners: {
			refresh: function (dataview) {
				Ext.each(dataview.panel.columns, function (column) {
					if (column.autoSizeColumn === true) {
						column.autoSize();
					}
				})
			}
		}
	},
	//iconCls: 'x-fa fa-tree',
	//animCollapse: false,
	//collapsible: true,
	columnLines: true, // 表格分隔线
	border: false,
	autoLoad: false,
	// frame: true,
	//
	disableSelection: false,
	autoScroll: true,
	loadMask: true, // 显示数据加载中蒙层
	columns: [],
	dockedItems: [
		{/* 顶部查询栏 */
			xtype: 'panel',
			reference: 'top',
			dock: 'top',
			padding: '16 10 16 10',
			frame: true,
			autoScroll: true,
			layout: 'vbox',
			defaults: {
				xtype: 'container',
				layout: 'column',
				width: '100%',
				border: true
			},
			items: [
				{ // 第一行 container
					defaults: {
						margin: '0 5 5 5'
					},
					reference: 'dynaParamPanel',
					items: []

				}
				// , { // 第二行 container
				// 	items: [{ // 查询
				// 		xtype: 'button',
				// 		reference: 'searchFnButton',
				// 		text: '查询',
				// 		iconCls: 'x-fa fa-search',
				// 		margin: '0 5 0 5',
				// 		handler: 'searchFn'
				// 	}]
				// }
			]
		}
	],
	listeners: {
		render: 'onRender',
		boxready: 'onBoxReady'
	}
});
